package generator.model.generatorEntities;

import generator.model.AbstractGenerator;

import java.util.ArrayList;
import java.util.List;

public class Supplement extends AbstractGenerator {
	
	private String name;
	private String picture;
	private List<String> newsLines;
	
	public Supplement(String name, String picture, List<String> newsLines) {
		this.name = name;
		this.picture = picture;
		this.newsLines = newsLines;
	}
	
	public Supplement(String name, String picture) {
		this(name, picture, new ArrayList<String>());
	}
	
	public void addNewsLine(String newsLine) {
		newsLines.add(newsLine);
	}
	
	public String getName() {
		return name;
	}
	
	public String getPicture() {
		return picture;
	}
	
	public String getSupplement() {
		return this.getRandom(newsLines);
	}
	
}